Repository navigation
fix(menu): menus stay under the menu bar, take a three-quarter cap and show a more-below hint (0.67.0) - #20
Merged
Merged
Conversation
…ost three quarters of the window tall (0.67.0) The menu bar opened its menus with openAt, the routine for menus opened at a point. A menu taller than the room under the bar was flipped above its button and clamped to 4 pixels from the window top, so it covered the bar; submenus clamped to the window top the same way. Bar menus now open with openUnder: the top is the button's bottom plus 4 and never moves up, and an inline max-height of the smaller of 75% of the window and the room to its bottom is set while the panel is hidden, before it is measured. The rest scrolls. openBeside takes the root menu's floor and the same cap before measuring and never places a submenu above it. Frontend HASHOUT 139.
…m while rows remain below (0.67.0) The menu card no longer scrolls: it holds a list that scrolls and carries the mask, so the bottom rows fade into the card's own glass, and a 56 by 12 pill with a down chevron sits over the fade. has-more is set on the card while rows remain below; at the last row both fade out in 160 ms and come back over 490 ms, with no fade under reduced motion. A menu opens with the hint already in place (no-fade while it is placed), and a menu that fits shows nothing. Rows and scrollTop now live on the list; max-height stays on the card. Frontend HASHOUT 140.
…same cap and show the hint (0.67.0) openAt, used by the workbench's Open, page layout and workspace menus, clamped a menu's top to 4 pixels from the window top with only the stylesheet's calc(100vh - 8px) as a cap, so a long one could cover the menu bar. It now takes the bar's bottom edge plus 4 as its floor (the window top when the bar has no height), sets the same 75% cap before it measures, keeps opening at its point or flipped above or left of it, and shows the more-below hint. Its submenus take the same floor and cap. Frontend HASHOUT 141.
Bumps every version site from 0.66.0 to 0.67.0, the same set as 0.66.0: frontend and demo package.json and package-lock.json (both own fields each), version.ts, backend __version__, src-tauri Cargo.toml, the formpdf entry in Cargo.lock, tauri.conf.json, the README badge, and the version field in the two skill SKILL.md files and their mirrors in the agents skills folder. Minor bump: the more-below hint is a new feature. The three committed demos are rebuilt with their own builds so they carry the new menu styles and this version: demo (npm run build), demos/protect and demos/sign (vite build --config ./vite.config.mjs). protect.js now takes its version from the build instead of a hand edit. sign.js had not been rebuilt since 0.60.0, so it also picks up the source changes made since then. The demos do not open the menu code itself, only its styles. The repo has no CHANGELOG.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(menu): menus stay under the menu bar, take a three-quarter cap and show a more-below hint (0.67.0)
Summary
openAt, the routine for menus opened at a point: a menu taller than the room under the bar was flipped above its button and clamped to 4 px from the window top. Bar menus now open withopenUnder: the top is the button's bottom plus 4 and never moves up, and the panel takes an inline max-height of the smaller of 75% of the window and the room to its bottom, set while it is hidden and before it is measured. The rest scrolls.openBeside) take the root menu's floor and the same cap before measuring, and are never placed above the floor..fs-menu-listthat carries the mask;has-moreon the card drives the fade (out in 160 ms at the last row, back in 490 ms, none under reduced motion). A menu opens with the hint already in place (no-fadewhile it is placed); a menu that fits shows nothing. Rows andscrollTopnow live on the list; max-height stays on the card.calc(100vh - 8px)as a cap. They now take the bar's bottom edge plus 4 as their floor (the window top when the bar has no height), the same 75% cap, keep opening at their point or flipped above or left of it, and show the hint.--glass-bgand--glass-bordertokens. No new z-index. The macOS system menu code is untouched. Rationale and removed lines are in frontend/HASHOUT_LOG.md entries 139 to 141.Commits
Version
v0.67.0 (release commit is last). Minor bump from 0.66.0. Bumped: frontend and demo package.json and package-lock.json (both own fields each), frontend/src/version.ts, backend/app/init.py, src-tauri/Cargo.toml, the formpdf entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json (formcompiler's version file), the README badge, and the version field of the two skill SKILL.md files and their mirrors. The committed demos (demo/, demos/protect/, demos/sign/) are rebuilt with their own builds and carry the new menu styles; demos/sign had not been rebuilt since 0.60.0, so sign.js also picks up the window source changes since then. The repo has no CHANGELOG.
Checks
npm run build(tsc --noEmit and vite build): exit 0, tsc clean, on the three menu commits before the version bump (the built bundle holds the new floor code).npm run buildin demo/ andvite build --config ./vite.config.mjsin demos/protect and demos/sign: all exit 0.backend/tests/test_f4_versions.py: 3 passed. The CI em dash and emoji check over tracked files: clean.Not run: a before measurement on origin/main; the full four-size matrix from the guide (only the sizes above); the hint fade timings; End, Home and other keyboard checks; the demos opened from file://; the window smoke test
pytest frontend/tests/window(it needs the Python engine installed); the rest of the backend tests; the desktop shell build. A right-click context menu on the page was not opened by the probe. The type check was not re-run after the version bump (only version strings changed). DOM law: verified under 4x CPU throttling for the bar menus and the point-anchored menus above (no frame with the menu above its final top); network throttling not applied.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.